<template>
  <div class="home">
    <el-container>
      <!-- 侧边导航栏 -->
      <el-aside width="200px">
        <Aside />
      </el-aside>
      <!-- 内容部分 -->
      <el-container>
        <!-- 头部 -->
        <Header></Header>
        <el-main>
          <router-view></router-view>
        </el-main>
        <!-- 底部 -->
        <el-footer>
          <Footer />
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from "@/components/header";
import Aside from "@/components/aside";
import Footer from "@/components/footer";
export default {
  components: {
    Header,
    Aside,
    Footer
  }
};
</script>

<style scoped lang="scss">
.el-container {
  height: 100%;
}
.el-aside {
  background-color: #545c64;
  text-align: center;
}
.el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #545c64;
}
.el-footer {
  background-color: #545c64;
  color: white;
}

.home {
  height: 100%;
}
</style>
